@Api(tags = "Comment API")
@RestController
@RequestMapping("/comment")
public class CommentController {
    private final CommentService commentService;
    // ...
    @ApiOperation("Add a new comment")
    @PostMapping("/add-comment")
    public ResponseEntity<APIResult> addComment(@RequestBody CommentPayload commentPayload) {
        boolean b = commentService.insertComment(commentPayload.toComment());
        return ResponseEntity.ok(APIResult.success(b));
    }
    // ...
}
